import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/incoming/${url}`, ...arg)
/**
 * 站内信
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
	// 获取分页
	processPage(data) {
		return request('page', data, 'get')
	},
	// 删除
	processDelete(data) {
		return request('delete', data)
	},
	// 提交表单
	processAdd(data) {
		return request('add', data)
	},
	// 修改表单
	processUpdate(data) {
		return request('edit', data)
	}
}
